<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/08/iOS%E7%BB%98%E5%9B%BE%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E5%88%97%20%E8%B4%9D%E5%A1%9E%E5%B0%94%E6%9B%B2%E7%BA%BFUIBezierPath%EF%BC%88%E4%BA%8C%EF%BC%89/">iOS绘图与动画系列 贝塞尔曲线UIBezierPath（二）</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-08</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS-%E5%8A%A8%E7%94%BB-%E7%BB%98%E5%9B%BE/">iOS,动画,绘图</a></span><div class="content">UIBezierPath简介
UIBezierPath类是Core Graphics框架关于path的一个封装。可以定义简单的形状，如椭圆或者矩形，或者有多个直线和曲线段组成的形状。
为什么要用UIBezierPath绘图。。？
上文主要介绍了C语言的绘图方式，如果使用上文所说的C语言方式绘图代码就 ...</div><a class="more" href="/2016/04/08/iOS%E7%BB%98%E5%9B%BE%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E5%88%97%20%E8%B4%9D%E5%A1%9E%E5%B0%94%E6%9B%B2%E7%BA%BFUIBezierPath%EF%BC%88%E4%BA%8C%EF%BC%89/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/07/Mac%20%E5%BF%AB%E6%8D%B7%E9%94%AE/">Mac 快捷键</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-07</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/%E5%BF%AB%E6%8D%B7%E9%94%AE/">快捷键</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Mac/">Mac</a></span><div class="content">Mac 快捷键快捷键提醒神器CheatSheet

截图
Shift+Command+3   	 		 截取全屏幕至桌面Shift+Command+4    			 截取部分屏幕至桌面Shift+Command+4+空格  		 截取窗口或原件至桌面Shift+Command+4 然后Esc 	 退 ...</div><a class="more" href="/2016/04/07/Mac%20%E5%BF%AB%E6%8D%B7%E9%94%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/07/iOS%20ViewController%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/">iOS ViewController生命周期</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-07</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS-%E5%8A%A8%E7%94%BB/">iOS,动画</a></span><div class="content">ViewController的生命周期1234567891011// 类的加载方法// 是加载类的时候调用。也就是说，iOS应用启动时会加载所有的类，所有的类就都会调一次这个方法。// 一个类的 `+load` 方法是在其父类的 `+load` 方法调用后再调用// 一个`Category`的 `+ ...</div><a class="more" href="/2016/04/07/iOS%20ViewController%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/06/iOS%E7%BB%98%E5%9B%BE%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E5%88%97%20Core%20Graphics%E4%B8%8EQuartz%202D%EF%BC%88%E4%B8%80%EF%BC%89/">iOS绘图与动画系列 Core Graphics与Quartz 2D（一）</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-06</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS-%E5%8A%A8%E7%94%BB-%E7%BB%98%E5%9B%BE/">iOS,动画,绘图</a></span><div class="content">iOS绘图Core Graphics与Quartz 2D
Quartz Core, Core Graphics and Quartz 2D之间的区别StackFlow
Quartz frameworks 及其 APIsCoreGraphics.framework
Core Graphics是一套C语 ...</div><a class="more" href="/2016/04/06/iOS%E7%BB%98%E5%9B%BE%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E5%88%97%20Core%20Graphics%E4%B8%8EQuartz%202D%EF%BC%88%E4%B8%80%EF%BC%89/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/06/%E9%A2%9C%E8%89%B2%E6%B8%90%E5%8F%98%20CAGradientLayer/">颜色渐变 CAGradientLayer</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-06</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS-%E5%8A%A8%E7%94%BB/">iOS,动画</a></span><div class="content">如果要完成需要有渐变色的图片，进度条等，那么CAGradientLayer可以很容易的实现这一功能。
点击进入CAGradientLayer.h文件阅读ApiApi简介：在背景色上绘制渐变色，填满layer（包括圆角）
1234567891011121314151617181920212223242 ...</div><a class="more" href="/2016/04/06/%E9%A2%9C%E8%89%B2%E6%B8%90%E5%8F%98%20CAGradientLayer/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/04/06/Mac%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BANuclide%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/">学习React Native:Mac环境搭建Nuclide安装与配置</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-04-06</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/React-Native/">React Native</a><span class="article-meta__link">-</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/ios/">ios</a></span><div class="content">Facebook开源了能够使用JavaScript开发iOS和Android原生应用的React Native。同时，Facebook还为React Native开发了一款基于跨平台文本编辑器Atom的开源IDE：Nuclide。
Nuclide的官网：http://nuclide.ioNuclid ...</div><a class="more" href="/2016/04/06/Mac%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BANuclide%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/03/31/iOS%E5%A4%9A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/">iOS 多环境配置 Build Configuration</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-03-31</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">对于有些企业来说，应用在发布到 App Store 之前, 会把应用通过Ad Hoc 形式进行公测。目的是用来模拟真实用户的操作行为和流程,以此来找到一些更不容易发现的 Bug。
产品，测试，都需要自己打包，而且需要打不同环境的多个包，打包需要对配置进行修改，产品还要求公测包标题和图标需要带有Bet ...</div><a class="more" href="/2016/03/31/iOS%E5%A4%9A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/03/30/iOS%20%E9%AB%98%E6%95%88%E7%8E%87%E7%BC%96%E7%A8%8B%E5%B7%A5%E5%85%B7%E7%AF%87/">iOS 高效率编程工具篇</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-03-30</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E7%BC%96%E7%A8%8B%E8%A7%84%E8%8C%83/">编程规范</a><span class="article-meta__link">-</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E4%BB%A3%E7%A0%81%E4%BC%98%E5%8C%96/">代码优化</a></span><div class="content">古语有云，“工欲善其事，必先利其器” ，合理的使用工具能让开发效率大大提升，达到事半功倍的效果。
第三方开源类库管理CocoaPods–快速集成文第三方开源类库使用教程：CocoaPods安装和使用教程
Xcode 插件利用插件提高代码质量和工作效率
建议使用Alcatraz来管理Xcode插件 快 ...</div><a class="more" href="/2016/03/30/iOS%20%E9%AB%98%E6%95%88%E7%8E%87%E7%BC%96%E7%A8%8B%E5%B7%A5%E5%85%B7%E7%AF%87/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/03/30/iOS%20%E5%85%A8%E9%83%A8%E8%AE%BF%E9%97%AE%E6%9D%83%E9%99%90%E8%AE%BE%E7%BD%AE/">iOS访问权限设置</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-03-30</time><div class="content">iOS 全部访问权限设置(不断更新)
HTTPS网络访问
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html ...</div><a class="more" href="/2016/03/30/iOS%20%E5%85%A8%E9%83%A8%E8%AE%BF%E9%97%AE%E6%9D%83%E9%99%90%E8%AE%BE%E7%BD%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/03/28/Swift%E5%AD%A6%E4%B9%A0-%E5%9F%BA%E7%A1%80%E9%83%A8%E5%88%86/">Swift学习-基础部分</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-03-28</time><div class="content">与Swift最新版同步，当前代码版本Swift4.0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 ...</div><a class="more" href="/2016/03/28/Swift%E5%AD%A6%E4%B9%A0-%E5%9F%BA%E7%A1%80%E9%83%A8%E5%88%86/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/page/21/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/21/">21</a><span class="page-number current">22</span><a class="page-number" href="/page/23/">23</a><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/23/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>